nautil
Class ExtractFeature
- public class ExtractFeature
Title: Notarization Authority Utilities
Description:
Copyright: Copyright (c) 2003
Company: UCSC
- Version:
- 1.0
- Author:
- H.E.M.H.B. Ekanayake
ExtractFeature
public ExtractFeature(String start,
String delimit,
String end)
- Constructor of an object E.g. new ExtractFeature("X-", "=", ";") will parse all commands of the form "X-ParameterName=ParameterValue;"
- Parameters:
start - string
delimit - string
end - string
setContent
public void setContent(String content)
- Used to bind a content to an object and it will automatically parse the content and loads the parameter values to map E.g. A (Parameter Name, Parameter Value) Map, (MailTo, someone@somewhere), (Priority, 5), ...
- Parameters:
content - the content
getFeature
public String getFeature(String option)
- Returns the features as requested
- Parameters:
option - parameter name
- Returns:
- parameter value
getBody
public String getBody()
- Returns the rest of the body E.g. if the content is "X-MTo=you;This is Body" then getBody() ==> "This is Body"
- Returns:
- the body